import { Component, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'app-demo13',
  templateUrl: './demo13.component.html',
  styles: [``],
  encapsulation: ViewEncapsulation.None
})
export class Demo13Component {
  date: Date = new Date();
  rangeDate = [new Date('2020-06-10'), new Date('2020-12-20')];
  changeDate = this.date;
  changeRangeDate = this.rangeDate;

  dateChange(date) {
    this.changeDate = date;
  }

  rangeDateChange(date) {
    this.changeRangeDate = date;
  }

  openChange(status) {
    console.log('status:' + status);
  }

  activeDateChange(date) {
    console.log('activeDateChange:' + date);
  }
}
